
aczjbx_articledetail()
function aczjbx_articledetail(){
$.ajaxSetup({async:false})
$.getJSON("/articlelist/index.json",(data)=>{
    var indexlist=data["data"]
    document.getElementById("archiveCount").innerText=Object.getOwnPropertyNames(indexlist).length;
    document.getElementById("archCount").innerText=Object.getOwnPropertyNames(indexlist).length;
    console.log(indexlist)
    sortedlist=[]
    for (const key in indexlist) {
      if (Object.hasOwnProperty.call(indexlist, key)) {
        const articalorigin = indexlist[key];
        sortedlist.push(articalorigin)
      }
    }
    sortedlist.sort((a,b)=>a.createtime>b.createtime)
    console.log(sortedlist)
    for (let index = 0; index < sortedlist.length; index++) {
      const articalorigin = sortedlist[index];
      $.getJSON(articalorigin["origin"],(data)=>{
        document.getElementById("collapse_").insertAdjacentHTML("beforeend",`
        <article itemscope itemtype="http://schema.org/Article">
        <header class="post-header">
    
          <div class="post-meta" style="${data["data"].beingVotedDown?"text-decoration:line-through;color:#aaa!important":"" }">
            <time itemprop="dateCreated"
                  datetime="${data["data"].datePublishedtime}"
                  content="${data["data"].datePublished}">
                  ${data["data"].datePublished.substr(5)}
            </time>
          </div>
    
          <h3 class="post-title">
              <a class="post-title-link" href="/articledetail/?${data["data"].hash}" itemprop="url">
                <span itemprop="name" style="${data["data"].beingVotedDown?"text-decoration:line-through;color:#aaa!important":"" }"s>${data["data"].headline}</span>
              </a>
          </h3>
    
        </header>
      </article>
        `)

})
    }
})
$.ajaxSetup({async:true})
}